package com.oxygen.fastfile.core;

import java.util.UUID;

/**
 * @author wangjie
 * @version V1.0
 * @title: FileStorageStrategy
 * @package: com.oxygen.fastfile.core.strategy
 * @description: TODO
 * @date 2022/3/26 21:35
 **/
public interface FileStorageHelpService {

    /**
     * 生成文件名
     *
     * @return
     */
    default String generateFileName() {
        return UUID.randomUUID().toString().replace("-", "");
    }

    /**
     * 校验文件后缀
     *
     * @return
     */
    default String checkFileSuffix() {
        return null;
    }
}
